# name : gsDesign nBinomial 2arm
# key : gsDesign.nBinomial.2arm
# expand-env: ((yas-indent-line 'fixed) (yas-wrap-around-region 'nil))
# contributor: Shuguang Sun
# --
nBinomial(
  # Farrington and Manning (1990)
  p1 = ${1:0.2}, # group 1, p1-p2-delta0 > 0
  p2 = ${2:0.1}, # group 2
  alpha = 0.025,
  beta = ${3:0.1},
  delta0 = ${4:0},  # p10 - p20, p10/p20, etc under H0
  ratio = ${5:1},
  sided = 1,
  outtype = 3,
  scale = \"${6:$$(yas-choose-value '("Difference" "RR" "LNOR"))}\",
  n = NULL
)
